<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>晒羊毛-撸羊毛有风险，投资需谨慎</title>
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/style.min.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/css/sym.css">
	<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/layer/layer.js"></script>
	<script type="text/javascript" src="<%=path%>/js/common.js"></script>
<body class="gray-bg">
<jsp:include page="/views/commons/header.jsp"></jsp:include>
	<div class="layout">
		<div class="hbox mb20">
			<div class="hd">
				<div class="pull-right">
					<a class="btn btn-warning btn-xs"  style="margin-right:292px;" href="<%=path %>/check/promotion/toInsert">点击发布需求</a>
					不方便展示？私下沟通需求<a href="<%=path%>/views/about/contact.jsp">联系我们</a>
				</div>
				<h3>引流需求</h3>
			</div>
			<div class="bd clearfix">
				<form id="promotion_choose_form" action="javascript:void(0)">
				<div class="filter-wrap">
					<d:radio describe="付费方式:" tableColumn="payment_method" fieldName="paymentMethod" value="${paramMap.paymentMethod}" type="query"></d:radio>
					<d:radio describe="投入产出比:" tableColumn="input_output_ratio" fieldName="inputOutputRatio" value="${paramMap.inputOutputRatio}" type="query"></d:radio>
					<d:radio describe="结算周期:" tableColumn="billing_cycle" fieldName="billingCycle" value="${paramMap.billingCycle}" type="query"></d:radio>
					<d:radio describe="投资人占比:" tableColumn="invest_user_rate" fieldName="investUserRate" value="${paramMap.investUserRate}" type="query"></d:radio>
					<d:radio describe="手机号真实率:" tableColumn="real_phone_rate" fieldName="realPhoneRate" value="${paramMap.realPhoneRate}" type="query"></d:radio>
					<d:radio describe="每月引流量:" tableColumn="ip_per_month" fieldName="ipPerMonth" value="${paramMap.ipPerMonth}" type="query"></d:radio>
				</div>
				</form>
				<div class="text-center pb20">
					<button class="btn btn-primary" id="promotion_list_btn" onclick="javascript:queryPromotionList(1)">搜索</button>
				</div>
			</div>
		</div>
		<div class="panel panel-default" id="promotion_list_div"></div>
	</div>
<jsp:include page="/views/commons/footer.jsp"></jsp:include>
</body>
<script type="text/javascript">
$(document).ready(function(){
	queryPromotionList(1);
});

function queryPromotionList(pageNo){
	
	var queryData=$("#promotion_choose_form").serialize();
	
	if(queryData==null||queryData==""){
		queryData="pageNo="+pageNo;
	}else{
		queryData=queryData+"&pageNo="+pageNo;
	}
	
	$.ajax({
		url : path + "/uncheck/promotion/list",
		type : "get",
		dataType : "html",
		data :queryData,
		success : function(data)
		{
			$("#promotion_list_div").html(data);
		},error:function(){
			layer.msg("服务器网络繁忙",{icon: 2});
		}
	});
}
</script>
</html>